package beans;

/**
 * @author Benjamin Gouit
 *
 */
public class QueryTerme {

	String terme;
	double poids;
	double tfIdf;
	
	public String getTerme() {
		return terme;
	}
	public void setTerme(String terme) {
		this.terme = terme;
	}
	public double getPoids() {
		return poids;
	}
	public void setPoids(double poids) {
		this.poids = poids;
	}
	public double getTfIdf() {
		return tfIdf;
	}
	public void setTfIdf(double tfIdf) {
		this.tfIdf = tfIdf;
	}
	
	public QueryTerme duplicate () {
		QueryTerme qterme = new QueryTerme();
		qterme.setTerme(terme);
		qterme.setPoids(poids);
		qterme.setTfIdf(tfIdf);
		
		return qterme;
	}
	@Override
	public String toString() {
		return "QueryTerme [terme=" + terme + ", poids=" + poids + ", tfIdf="
				+ tfIdf + "]";
	}
	
}
